package com.wjt.polly.service;

import com.wjt.polly.entity.Role;
import com.wjt.polly.repository.RoleDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liqin@nd.com.cn
 * @version V1.0
 * @title: RoleService
 * @description: TODO(用一句话描述该文件做什么)
 * @date: 2019/8/27 21:52
 */

@Service
@Slf4j
public class RoleService {

    @Autowired
    private RoleDao roleDao;

    public Role query( Integer roleId) {
        return  roleDao.findByRoleId(roleId);
    }

}
